import request from '@/utils/request'

export function listordHead(query) {
  return request({
    url: '/purchase/ordHead/list',
    method: 'get',
    params: query
  })
}

export function createordHead(data) {
  return request({
    url: '/purchase/ordHead/create',
    method: 'post',
    data
  })
}

export function readordHead(data) {
  return request({
    url: '/purchase/ordHead/get/' + data.id,
    method: 'get'
  })
}

export function updateordHead(data) {
  return request({
    url: '/purchase/ordHead/update',
    method: 'post',
    data
  })
}

export function deleteordHead(data) {
  return request({
    url: '/purchase/ordHead/delete/' + data.fbillno,
    method: 'delete'
  })
}